package Base;

import java.util.UUID;

/**
 * Created by gld-yjzx001 on 2016-4-11.
 */
public class BimResponse<T> extends GResponse<T>{
    private String messageId;
    private Integer messageType;
    private Long timestamp;

    public BimResponse() {
    }

    public BimResponse(Integer messageType, T data) {
        super(data);
        this.messageType = messageType;
        this.messageId = UUID.randomUUID().toString().replaceAll("-", "");
        this.timestamp = System.currentTimeMillis();
    }

    public String getMessageId() {
        return messageId;
    }

    public void setMessageId(String messageId) {
        this.messageId = messageId;
    }

    public Integer getMessageType() {
        return messageType;
    }

    public void setMessageType(Integer messageType) {
        this.messageType = messageType;
    }

    public Long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }
}
